package com.example.zhiran.mapper;

import com.example.zhiran.pojo.orm.ZRResource;
import com.example.zhiran.pojo.orm.ZRTag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TableResourceTagMapper {
    //根据tags寻找resource
    List<ZRResource> getResourcesByTags(@Param("tags") List<String> tags);

    //根据resource id查找tag
    List<ZRTag> getTagsByResource(String rsId);


}
